package com.janko.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author nyk
 * @Date 2021/6/28 11:23
 * @Version 1.0
 * @Desc 在项目启动之前 预读取一些资源文件
 */
@Component
@Order(1)
public class Order1PreReadProperties implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("Order1PreReadProperties文件类的读取");
    }
}
